import { caller, peer, localVideo } from "./App.vue";

// 接受方同意视频请求
export const accpetCall = () => {
// 对方同意视频请求
if (caller.value) {
// A收到B同意之后开始创建信息
peer.value = new RTCPeerConnection();
// 添加本地音视频流生成offer
peer.value.addStream(localVideo.value!.srcObject);
}
};
